<extend name="Layout/dialog" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">账户管理</block>
<block name="controller">管理员管理</block>
<block name="action">新增管理员</block>
<block name="desc"></block>
<block name="content">
<div class="box box-success">
	<div class="box-header with-border">
		<h3 class="box-title">新增管理员</h3>
	</div>
	<form class="form-horizontal" action="{:U('save')}" method="post" rel-action="form" rel-success="reload()">
	<div class="box-body">
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>所属分组</label>
			<div class="col-sm-10">
				<select class="form-control" rel-action="select" name="role_id">
					<option value="0">作为顶级分类</option>
					<volist name="role" id="item">
						<option value="{$item.role_id}">{$item.role_name}</option>
					</volist>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>昵称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="usernick" placeholder="请输入用户昵称"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>用户名</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="username" placeholder="请输入用户名，注意：6-30位"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>密码</label>
			<div class="col-sm-10">
				<input type="password" class="form-control" name="userpass" placeholder="请输入密码，注意：4-30位"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>确认密码</label>
			<div class="col-sm-10">
				<input type="password" class="form-control" name="password" placeholder="请输入确认密码"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">状态</label>
			<div class="col-sm-10 radio">
				<label><input type="radio" name="state" value="1" checked="checked">正常</label>
				<label><input type="radio" name="state" value="0">锁定</label>
			</div>
		</div>
	</div>
	<div class="box-footer">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">保存</button>
			<button type="button" class="btn btn-default" rel-action="dialog-close">关闭</button>
		</div>
	</div>
	</form>
</div>
</block>